package com.havey.ye;

/**
 * @author huaiwei.com.havey.ye
 * @description: 收费测试
 * @date 2021/2/9 17:33
 */
public class CashMain {

    public static void main(String[] args) {
        //预收100
        double money=300;
        CashContext 正常收费=new CashContext("正常收费");
        double result = 正常收费.getResult(money);
        System.out.println("正常收费应收：" + result);
        //打八折
        CashContext 打八折 = new CashContext("打八折");
        double 打八折Result = 打八折.getResult(money);
        System.out.println("打八折Result：" + 打八折Result);
        //满300减100
        CashContext 满300减100 = new CashContext("满300减100");
        double 满300减100Result = 满300减100.getResult(money);
        System.out.println("满300减100Result：" + 满300减100Result);


    }
}
